import request from "@/utils/request";

// 获得门店房间信息分页
export function getRoomList(query) {
  return request({
    url: "/store/room/page",
    method: "get",
    params: query,
  });
}

// 创建门店房间信息
export function CreateRoom(data) {
  return request({
    url: "/store/room/create",
    method: "post",
    data: data,
  });
}

// 更新门店房间信息
export function UpdateRoom(data) {
  return request({
    url: "/store/room/update",
    method: "PUT",
    data: data,
  });
}

// 删除门店房间信息
export function DeleteRoom(data) {
  return request({
    url: "/store/room/delete",
    method: "DELETE",
    params: data,
  });
}

// 房间管理-关闭功能
export function closeRoom(data) {
  return request({
    url: "/store/room/closeRoom",
    method: "post",
    params: data,
  });
}

// 获得房间设置之下拉框列表
export function getSelectList(query) {
  return request({
    url: "/store/room-setting/getList",
    method: "get",
    params: query,
  });
}

// 获得门店房间配置分页
export function getRoomconfigPage(query) {
  return request({
    url: "/store/room-config/page",
    method: "get",
    params: query,
  });
}

// 创建门店房间配置
export function CreateRoomconfigPage(data) {
  return request({
    url: "/store/room-config/create",
    method: "post",
    data: data,
  });
}

// 更新门店房间配置
export function UpdateRoomconfigPage(data) {
  return request({
    url: "/store/room-config/update",
    method: "put",
    data: data,
  });
}

// 删除门店房间配置
export function DeleteRoomconfigPage(query) {
  return request({
    url: "/store/room-config/delete",
    method: "delete",
    params: query,
  });
}

// 获得门店房间配置
export function getRoomconfig(query) {
  return request({
    url: "/store/room-config/get",
    method: "get",
    params: query,
  });
}

// 导出门店房间配置 Excel
export function ExportRoomconfig(query) {
  return request({
    url: "/store/room-config/export-excel",
    method: "get",
    params: query,
  });
}

// 获得门店房间所有配置列表
export function getAllRoomsConfigPage(query) {
  return request({
    url: "/store/room-config/listAll",
    method: "get",
    params: query,
  });
}
